package com.jy.rhin.model.body.ertongjktj;

import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class YanBu {

    //左眼裸眼远视力值
    @XPath(model = "code", codePath = "/entry/observation/code[@displayName='左眼裸眼远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_116_00))
    private String zuoYanLYYSLZ;


    //右眼裸眼远视力值
    @XPath(model = "code", codePath = "/entry/observation/code[@displayName='右眼裸眼远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_116_00))
    private String youYanLYYSLZ;

    //左眼矫正远视力值
    @XPath(model = "code", codePath = "/entry/observation/code[@displayName='左眼矫正远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_098_00))
    private String zuoYanJZYSLZ;

    //右眼矫正远视力值
    @XPath(model = "code", codePath = "/entry/observation/code[@displayName='右眼矫正远视力值']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_098_00))
    private String youYanJZYSLZ;


    //眼外观检查异常标志
    @XPath(model = "code", codePath = "/entry/observation/code[@code='DE04.10.217.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_217_00))
    String yanWaiGJCYCBZ;

    //眼外观检查异常结果描述
    @XPath(model = "code", codePath = "/entry/observation/entryRelationship/observation/code[@code='DE04.10.216.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_216_00))
    String yanWaiGJCYCJGMS;

}
